import { DetailDataType } from "@/types/detail";
import { ResType } from "@/types/global";
import { request } from "@/utils";

export function fetchDetailAPI(id: string) {
  return request<ResType<DetailDataType>>({
    url: `/articles/${id}`
  })
}